<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<form id="funcpoint_form" name="funcpoint_form" class="form-horizontal form-validate" method="post" 
action="<ww:if test="uuid!= null">updFuncPoint.action</ww:if><ww:else>addFuncPoint.action</ww:else>" >
	<input type="hidden" id="sysId" name="sysId" value="<ww:property value='item.sysId'/>"/>
	<input type="hidden" name="funcCode" id="funcCode" value="<ww:property value='item.funcCode'/>" />
	<input type="hidden" id="uuid" name="uuid" value="<ww:property value='item.uuid'/>"/>
    <div class="control-group">
      <label class="control-label"><span class="required">*</span>功能项名称</label>
      <div class="controls">
         <input type="text" placeholder="请输入功能项名称" class="input-large required" name="actionName" id="actionName" value="<ww:property value='item.actionName'/>" maxlength="100">
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="input01"><span class="required">*</span>功能项代码</label>
      <div class="controls">
        <input type="text" placeholder="请输入功能项代码" class="input-large required" name="actionCode" id="actionCode" maxlength="50" value="<ww:property value='item.actionCode'/>">
      </div>
    </div>
    <div class="control-group">
      <label class="control-label"><span class="required">*</span>设置状态</label>
      <div class="controls">
	      <ww:iterator value="#dictID.getDictType('d_openflag')">
	           <label class="radio inline">
	          <input type="radio" value="<ww:property value='code'/>" <ww:if test="item.openFlag==code">checked="checked"</ww:if> id="openFlag" name="openFlag"><ww:property value="name"/></label>
	      </ww:iterator>
      </div>
    </div>
    <div class="set-btn" data-spy="affix" data-offset-top="200">
	    <button class="btn green" type="button" onclick="save();">保存</button>
	    <a class="btn" href="javascript:;" onclick="$css.closeDialog()">取消</a>
  	</div>
</form>
<script type="text/javascript">
	function save(){
		var $form = $('#funcpoint_form');
		$action.submit($form.get(0),null,null,closeDialogRefreshTabForm);
	}
	function userroleCallback(form){
		var $form=$(form),url = $form.attr('action');
		if(url.startsWith('add')){
			return $action.submit(form);
		}else{
			return $action.ajaxSubmit(url,$form.serialize(),$('#include',$css.focusDialog()));
		}
	}
	
</script>